package com.ce.pms.occupation.model;

// Generated 2008-12-24 13:41:51 by Hibernate Tools 3.2.0.b9

import java.math.BigDecimal;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:走表的抄表底数 关联数据表:OM_METER_CARDINAL_NUMBER
 *
 * @author yandawei
 * @CreateDate:2008-12-24
 */
@Entity
@Table(name = "OM_METER_CARDINAL_NUMBER")
public class MeterCardinalNumberDO implements IDomainObject {

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "METER_CARDINAL_NUMBER_ID", unique = true, nullable = false)
	private Long keyword;

	/**
	 * 验房登记
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "INSPECTION_REQUISITION_ID")
	private InspecteRequisiteDO inspectionRequisition;

	/**
	 * 电表基数
	 */
	@Column(name = "AMMETER", precision = 12, scale = 2)
	private BigDecimal ammeter = new BigDecimal(0.00);

	/**
	 * 水表基数
	 */
	@Column(name = "WATER_METER", precision = 12, scale = 2)
	private BigDecimal waterMeter = new BigDecimal(0.00);

	/**
	 * 房号
	 */
	@Column(name = "HOUSE_NUMBER", nullable = false, length = 36)
	private String houseNumber;

	/**
	 * 系统信息
	 *
	 */
	@Embedded
	@AttributeOverride(name="sysDate",column=@Column(name="SYS_DATE"))
	private SysInfo sysInfo;

	public MeterCardinalNumberDO() {
	}

	public MeterCardinalNumberDO(Long keyword) {

		this.keyword = keyword;
	}

	public String getHouseNumber() {
		return houseNumber;
	}

	public void setHouseNumber(String houseNumber) {
		this.houseNumber = houseNumber;
	}

	public InspecteRequisiteDO getInspectionRequisition() {
		return inspectionRequisition;
	}

	public void setInspectionRequisition(
			InspecteRequisiteDO inspectionRequisition) {
		this.inspectionRequisition = inspectionRequisition;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(long keyword) {
		this.keyword = keyword;
	}

	public SysInfo getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}

	public BigDecimal getAmmeter() {
		return this.ammeter;
	}

	public void setAmmeter(BigDecimal ammeter) {
		this.ammeter = ammeter;
	}

	public BigDecimal getWaterMeter() {
		return this.waterMeter;
	}

	public void setWaterMeter(BigDecimal waterMeter) {
		this.waterMeter = waterMeter;
	}

}
